<%@page import="com.mmy.domain.scenic.TScenicPlan"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>电子票计划信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<div id="menu-back">
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>电子票计划信息</h2>			
		</div>
	</header>
	<section class="container">
	

			<div class="information">
				<form action="searchscenicplan" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>电子票计划信息管理
						</h4>
				<div class="input-container">
							<div class="select-condition">
							<div class="at-float-right">
								<input type="hidden" id="iScenicID" name="iScenicID" value="${strScenicID }">
							<input type="button" class="btn " value="增加" onclick="location.href='createscenicplan?iScenicID=${strScenicID }'">
							<input type="button" class="btn " value="修改"  onclick="updateScenicPlan()"/>
							<input type="button" class="btn"  value="删除" onclick="delScenicPlan()"/>
							</div>
						
						</div>
	
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">
						</th>
						<th><label>票种</label></th>
						<th><label>开始日期</label></th>			
						<th><label>结束日期</label></th>
						<th><label>底价</label></th>
						<th><label>同业价</label></th>
						<th><label>对外报价</label></th>			
						<th><label>数量</label></th>			
						<th><label>备注</label></th>			
					
					</tr>
					<c:forEach var="lstScenicPlan" items="${lstScenicPlan}">
					<tr>
						<td>
						<label><input type="checkbox" name="ckone" value="${lstScenicPlan.getPlanID()}" onclick="ckOne(this)">
						</label>	
						</td>
						<td>
						${lstScenicPlan.getTicketName()}</td>
						<td>
						<fmt:formatDate value='${lstScenicPlan.getStartDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td>
						<fmt:formatDate value='${lstScenicPlan.getEndDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td><label>${lstScenicPlan.getFloor()}</label></td>
						<td><label>${lstScenicPlan.getPeer()}</label></td>
						<td><label>${lstScenicPlan.getPrice()}</label></td>
						
						<td><label>${lstScenicPlan.getNumber()}</label></td>
						<td><label>${lstScenicPlan.getMemo()}</label></td>
					</tr>
				</c:forEach>
					
				</table>
					<select class="input-select-vlign" name="pageSize" onchange="scenicPlanPageSize(this.options[this.options.selectedIndex].value)">
							<option style="display: none;">${iPageSize}</option>
							<option value="20">20</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="200">200</option>
						</select> 
								<a href="scenicplanindex?pageNumber=1&pageSize=${iPageSize}&iScenicID=${strScenicID}">首页</a>
						
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="scenicplanindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&iScenicID=${strScenicID}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="scenicplanindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&iScenicID=${strScenicID}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="scenicplanindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&iScenicID=${strScenicID}">尾页</a>
						
				</div>
				</form>
				<center>
				
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 	
			</div>
			</section>
			</article>
			</main>
			</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		
</body>

</html>